package gui;

import java.awt.Color;
import java.awt.Graphics;

import card.Card;
import effect.Effect;

/**
 * 
 * @author Anton
 * Used to select Effects that can be activated.
 */
public class EffectSphere extends SelectionSphere{

	private Effect effect;
	
	public EffectSphere(Card c, Effect e) {
		super(c);
		effect = e;
	}
	
	public Effect getEffect(){
		return effect;
	}
	
	public void paint(Graphics g){
		g.setColor(Color.green);
		//g.fillOval(pos.x-size/2, pos.y-size/2, size, size);
		ImageHandler.getInstance().drawImage(pos.x-size/2, pos.y-size/2+1, 48, 48, effect.getImageName(), g);
	}

}
